import Layout from '@/layout/index.vue'

export default {
  path: '/material-template',
  name: 'MaterialLTemplate',
  meta: { title: '材料模版' },
  component: Layout,
  children: [
    {
      path: 'config-material',
      name: 'ConfigMaterial',
      meta: {
        title: '配置材料模版',
        // componentName: 'ConfigMaterial',
        // keepAlive: ['CreateConfigMaterial'],
      },
      component: () =>
        import('@/views/material-manage/config-material/index.vue'),
    },
    {
      path: 'create-config-material',
      name: 'CreateConfigMaterial',
      meta: { title: '配置材料模版详情', hidden: true },
      component: () =>
        import(
          '@/views/material-manage/config-material/components/CreateConfigMaterial.vue'
        ),
    },
    {
      path: 'analyze-material',
      name: 'AnalyzeMaterial',
      meta: {
        title: '解析材料模版',
        // componentName: 'AnalyzeMaterial',
        // keepAlive: ['CreateAnalyze'],
      },
      component: () =>
        import('@/views/material-manage/analyze-material/index.vue'),
    },
    {
      path: 'create-analyze',
      name: 'CreateAnalyze',
      meta: { title: '解析材料模版详情', hidden: true },
      component: () =>
        import(
          '@/views/material-manage/analyze-material/components/CreateAnalyze.vue'
        ),
    },
  ],
}
